package com.nwpu.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName tbl_order
 */
@TableName(value ="tbl_order")
@Data
public class Order implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    private String orderId;

    /**
     * 
     */
    private String userId;

    /**
     * 
     */
    private String goodsId;

    /**
     * 
     */
    private Integer purchaseNum;

    /**
     * 
     */
    private String addressId;

    /**
     * 
     */
    private String orderState;

    /**
     * 
     */
    private String paykey;

    /**
     * 
     */
    private Integer totalMoney;

    /**
     * 
     */
    private Date cancelTime;

    /**
     * 
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}